﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RegistroUsuario.aspx.cs" Inherits="SistemaCruzAzul.Web.Account.RegistroUsuario" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;<asp:Label ID="Label8" runat="server" BorderColor="#CCCCCC" 
        BorderStyle="None" style="margin-right: 3px" 
        Text="                      Regístrese para obtener una nueva cuenta" 
        Width="437px"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
    </h3>
    <asp:Panel ID="Panel1" runat="server" Height="352px" Width="440px" 
        BorderStyle="Inset" BorderWidth="1px">
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label1" runat="server" Text="Nombre de usuario:"></asp:Label>
            &nbsp;<asp:TextBox ID="txtuser" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator id="UsernameRequiredValidator" runat="server"
                                      ControlToValidate="txtuser" ForeColor="red"
                                      Display="Static" ErrorMessage="*" />
        </p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label2" runat="server" Text="Contraseña:"></asp:Label>
            <asp:TextBox ID="txtpass" runat="server"></asp:TextBox>
             <asp:RequiredFieldValidator id="PasswordRequiredValidator" runat="server"
                                      ControlToValidate="txtpass" ForeColor="red"
                                      Display="Static" ErrorMessage="*" />
        </p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label3" runat="server" Text="Confirme contraseña:"></asp:Label>
            <asp:TextBox ID="txtrpass" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator id="PasswordConfirmRequiredValidator" runat="server"
                                      ControlToValidate="txtrpass" ForeColor="red"
                                      Display="Static" ErrorMessage="*" />
          <asp:CompareValidator id="PasswordConfirmCompareValidator" runat="server"
                                      ControlToValidate="txtrpass" ForeColor="red"
                                      Display="Static" ControlToCompare="txtpass"
                                      ErrorMessage="Confirmar contraseña debe coincidir con la Contraseña." />
        </p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label4" runat="server" Text="Correo electronico:"></asp:Label>
            <asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
        </p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label5" runat="server" Text="Pregunta de seguridad:"></asp:Label>
            <asp:TextBox ID="txtquestion" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator id="PasswordQuestionRequiredValidator" runat="server"
                                      ControlToValidate="txtquestion" ForeColor="red"
                                      Display="Static" ErrorMessage="*" />
        </p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label6" runat="server" Text="Respuesta de seguridad:"></asp:Label>
            <asp:TextBox ID="txtasw" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator id="PasswordAnswerRequiredValidator" runat="server"
                                      ControlToValidate="txtasw" ForeColor="red"
                                      Display="Static" ErrorMessage="*" />
        </p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label7" runat="server" Text="Tipo de rol:"></asp:Label>
            <asp:DropDownList ID="cbrol" runat="server" DataSourceID="EntityDataSource1" 
            DataTextField="RoleName" DataValueField="RoleName">
            </asp:DropDownList>
            <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
            ConnectionString="name=farmaciacruzazulentities" 
            DefaultContainerName="FARMACIACRUZAZULEntities" EnableDelete="True" 
            EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
            EntitySetName="aspnet_Roles">
            </asp:EntityDataSource>
        </p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="ErrorMessage" runat="server" ForeColor="Red" 
                style="text-align: center"></asp:Label>
        </p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:Button ID="btnregistrar" runat="server" onclick="btnregistrar_Click" 
        Text="Registrar" Width="78px" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<asp:Button ID="btnlimpiar" runat="server" 
            onclick="btnlimpiar_Click" Text="limpiar" Width="78px" />
        </asp:Panel>
    &nbsp;&nbsp;  
</asp:Content>
